//全局变量

import Vue from 'vue'
import { mapState, mapMutations } from 'vuex'

Vue.mixin({
    data() {
        return {
            numcount: 30,
            userphone: '',
            itheme: localStorage.getItem('theme') || 'dark',
            lang: localStorage.getItem('lang') || 'chinese',
        }
    },
    computed: {
        ...mapState(['appphone', 'userinfo', 'cityinfo'])
    },
    methods: {
        changeUserPhone() {
            this.userphone = "12345678910"
        },
        ...mapMutations(['changeAppPhone', 'changeUserInfo', 'resetUserInfo', 'changeCityInfo'])
    },
    
})




//局部变量


export const mymixins = {
    data() {
        return {
            msg: "Are you ok"
        }
    }
}